﻿using SHDM.Web.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Principal;
using System.Web;

namespace SHDM.Web.Infrastructure
{
    public class HIdentity : GenericIdentity
    {
        /// <summary>
        /// 账号
        /// </summary>
        public string LoginName { get; set; }
        AccountInfo _AccountInfo = null;
        public AccountInfo AccountInfo
        {
            get
            {
                return _AccountInfo;
            }
        }

        public HIdentity(AccountInfo _AccountInfo)
                    : base(_AccountInfo.LoginName, "Basic")
        {
            this.LoginName = _AccountInfo.LoginName;
            this._AccountInfo = _AccountInfo;
        }
    }
}